package org.example.aigc.entity;
import org.springframework.core.io.FileSystemResource;

public class uploadKnowledgeEntity {
    /**
     * 上传文件后是否进行向量化
     */
    private boolean to_vector_store;

    /**
     * 覆盖已有文件
     */
    private boolean override;

    public boolean isTo_vector_store() {
        return to_vector_store;
    }

    public void setTo_vector_store(boolean to_vector_store) {
        this.to_vector_store = to_vector_store;
    }

    public boolean isOverride() {
        return override;
    }

    public void setOverride(boolean override) {
        this.override = override;
    }

    public boolean isNot_refresh_vs_cache() {
        return not_refresh_vs_cache;
    }

    public void setNot_refresh_vs_cache(boolean not_refresh_vs_cache) {
        this.not_refresh_vs_cache = not_refresh_vs_cache;
    }

    public int getChunk_size() {
        return chunk_size;
    }

    public void setChunk_size(int chunk_size) {
        this.chunk_size = chunk_size;
    }

    public int getChunk_overlap() {
        return chunk_overlap;
    }

    public void setChunk_overlap(int chunk_overlap) {
        this.chunk_overlap = chunk_overlap;
    }

    public boolean isZh_title_enhance() {
        return zh_title_enhance;
    }

    public void setZh_title_enhance(boolean zh_title_enhance) {
        this.zh_title_enhance = zh_title_enhance;
    }

    public String getKnowledge_base_name() {
        return knowledge_base_name;
    }

    public void setKnowledge_base_name(String knowledge_base_name) {
        this.knowledge_base_name = knowledge_base_name;
    }

    public FileSystemResource getFiles() {
        return files;
    }

    public void setFiles(FileSystemResource files) {
        this.files = files;
    }

    /**
     * 暂不保存向量库（用于FAISS）
     */
    private boolean not_refresh_vs_cache;

    /**
     * 知识库中单段文本最大长度
     */
    private int  chunk_size;

    /**
     * 知识库中相邻文本重合长度
     */
    private int chunk_overlap;

    /**
     * 是否开启中文标题加强
     */
    private boolean zh_title_enhance;

    /**
     * 知识库名称
     */
    private String knowledge_base_name;

    /**
     * 文件
     */
    private FileSystemResource files;
}